package com.upstream.link.view
{
	import com.upstream.link.SYS;
	
	import flash.display.Sprite;
	
	public class GameView extends Sprite
	{
		public var itemArr:Array;
		public function GameView(arr:Array)
		{
			this.itemArr = new Array();
			
			for(var i:int=0;i<arr.length;i++){
				for(var j:int=0;j<arr[0].length;j++){
					var rectVo:RectVO = arr[i][j] as RectVO;
					var rectItem:RectItem = new RectItem(rectVo);
					addChild(rectItem);
					rectItem.x = rectVo.p.x * SYS.ITEM_WIDTH;
					rectItem.y = rectVo.p.y *  SYS.ITEM_HEIGHT;
					this.itemArr.push(rectItem);
				}
			}
		}
	}
}